#include "delay.h"
#include "tim.h"
void delay_us(uint32_t nus)
{

__HAL_TIM_SetCounter(&htim3,0);
	__HAL_TIM_ENABLE(&htim3);
	while(__HAL_TIM_GetCounter(&htim3)<nus);
	
	__HAL_TIM_DISABLE(&htim3);
	
}
void delay_ms(uint16_t nms)
{
HAL_Delay(nms);
}
